package com.example.zbarapplication;

import com.example.zbarapplication.slice.ScannerAbilitySlice;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;

public class ScannerAbility extends Ability {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setMainRoute(ScannerAbilitySlice.class.getName());
        requestPermissionsFromUser(
                new String[]{

                        "ohos.permission.CAMERA"
                }, 0);
    }

}
